package com.wtwd.campus.service;

import com.wtwd.campus.entity.Classes;
import com.wtwd.campus.entity.ExcelImportStudentInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author mjy
 * @date 2021/06/17
 * @description
 */
@Service
public interface ClassesService {
    List<Map<String, Object>> getClassesIdAndClassNameByGradeId(Integer gradeId);

    Classes getClassesInfoByCondition(String orgCode, ExcelImportStudentInfo excelImportStudent);


    /**
     * 根据年级Id,年级名称
     *
     * @param gradeId
     * @param classesName
     * @return
     */
    Classes getClassesByGradeIdAndClassesName(Integer gradeId, String classesName);

    /**
     * 存储年级 返回主键
     * @param classes
     * @return
     */
    Classes save(Classes classes);
}
